---
page_title: "cloudflare_byo_ip_prefix Resource - Cloudflare"
subcategory: ""
description: |-
  Provides the ability to manage Bring-Your-Own-IP prefixes (BYOIP)
  which are used with or without Magic Transit.
---

# cloudflare_byo_ip_prefix (Resource)

Provides the ability to manage Bring-Your-Own-IP prefixes (BYOIP)
which are used with or without Magic Transit.

## Example Usage

```terraform
resource "cloudflare_byo_ip_prefix" "example" {
  account_id    = "f037e56e89293a057740de681ac9abbe"
  prefix_id     = "d41d8cd98f00b204e9800998ecf8427e"
  description   = "Example IP Prefix"
  advertisement = "on"
}
```
<!-- schema generated by tfplugindocs -->
## Schema

### Required

- `account_id` (String) The account identifier to target for the resource.
- `prefix_id` (String) The assigned Bring-Your-Own-IP prefix ID. **Modifying this attribute will force creation of a new resource.**

### Optional

- `advertisement` (String) Whether or not the prefix shall be announced. A prefix can be activated or deactivated once every 15 minutes (attempting more regular updates will trigger rate limiting). Available values: `on`, `off`.
- `description` (String) Description of the BYO IP prefix.

### Read-Only

- `id` (String) The ID of this resource.

## Import

Import is supported using the following syntax:

```shell
$ terraform import cloudflare_byo_ip_prefix.example <account_id>/<prefix_id>
```
